import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import VueCookies from 'vue3-cookies'


// @ts-ignore
import * as VueRouter from 'vue-router';
import routes from "./config/router";
// import {RouteRecordRaw} from "vue-router";
// const routes: any = [...routes2];
const app = createApp(App);
// app.use(vant);

const router = VueRouter.createRouter({
    // 4. 内部提供了 history 模式的实现。为了简单起见，我们在这里使用 hash 模式。
    history: VueRouter.createWebHashHistory(),
    routes, // `routes: routes` 的缩写
  })
  
app.config.globalProperties.$cookies = VueCookies
app.use(ElementPlus)
app.use(router);
app.mount('#app')
